home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / Class&Method Reference (stack) / MacApp 2.0 Reference / MacApp 2.0 Reference / card_260468.txt < prev    next >
Encoding:
Text File  |  1990-07-24  |  1.2 KB  |  36 lines

  1. -- card: 260468 from stack: in.0 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 177597
  5. -- name: CatchFailures
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10. CatchFailures pushes the specified failure-handling routine onto the global stack of such routines in MacApp.
  11. The fi parameter is a failure information record that MacApp uses to return data in case of a failure. The handler parameter is the procedure that is to be executed upon the next failure.  
  12. MacApp uses CatchFailures in numerous places to post the handler routine for each method that provides a failure handler. You can call this routine with an appropriate handler routine when you create or initialize objects, execute commands, modify views, or manipulate memory‚Äîin short, almost anytime you need to gracefully exit a failed routine. 
  13.  
  14.  
  15.  
  16. -- part contents for background part 5
  17. ----- text -----
  18. Unit: UFailure
  19.  
  20.  
  21. -- part contents for background part 23
  22. ----- text -----
  23. ROUTINE
  24.  
  25. -- part contents for background part 2
  26. ----- text -----
  27. CatchFailures
  28.  
  29. -- part contents for background part 20
  30. ----- text -----
  31. PROCEDURE CatchFailures(VAR fi: FailInfo; PROCEDURE Handler(e:INTEGER; m: LONGINT)); EXTERNAL;
  32.  
  33.  
  34. -- part contents for background part 40
  35. ----- text -----
  36. 62 of 498 Routines